package com.yc2.springtest1.dao.impl;

import com.yc2.entity.Num;
import com.yc2.springtest1.dao.jisuan;

/**
 * @ClassName Add
 * @since: 2023/7/25 17:12
 * @auth: kirito
 * @description:
 **/
public class Add implements jisuan {

    @Override
    public int add(Num num) {
        return num.getX()+num.getY();
    }

    @Override
    public int mul(Num num) {
        return num.getX()*num.getY();
    }
}
